package com.dd.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("user")
@ResponseBody
public class UserController {

    @RequestMapping(value = "/getUserList")
    public String getUserList(String name, String sex){
        System.out.println("姓名："+name);
        System.out.println("性别："+sex);
        return "查询";
    }

    @RequestMapping(value = "/addUser")
    public String addUser(){
        System.out.println("添加");
        return "添加";
    }

    @RequestMapping(value = "/updateUser")
    public String updateUser(){
        System.out.println("修改");
        return "修改";
    }

    @RequestMapping(value = "/deleteUser")
    public String deleteUser(){
        System.out.println("删除");
        return "删除";
    }
}
